package com.yunji.cabinet.device;

import com.yunji.common.exception.device.DeviceErrorEnum;
import com.yunji.common.exception.device.DeviceException;

/**
 * @author : peter-zhu
 * @date : 2025/1/15 11:56
 * @description : TODO
 **/
public class DeviceAssert {
    public static void isTrue(boolean expression, DeviceErrorEnum errorEnum, Object... values) {
        if (!expression) {
            throw new DeviceException(errorEnum, values);
        }
    }
}
